NODE_IP = "192.168.100.200"  # 实际部署节点IP
NODE_PASSWORD = "**"  # 实际部署节点密码
HTTP_REPO_IP = "192.168.100.192"  # 引导节点IP
BASE_URL = "http://" + HTTP_REPO_IP + ":30010"  # 引导节点

IP = "192.168.100.198"
baseUrl = "https://" + IP + ":31616"
HOST_NAME = "fuyao-master"  # nodename
VERSION = "0.5.2"
USERNAME = 'admin'
# password = 'test@1234'  #v24.06
PASSWORD = "[116,101,115,116,64,49,50,51,52]"  # 初始密码
NEWPASSWORD = "[116,101,115,116,64,49,50,51]"  # 修改后的密码
SSH_PASSWORD = 'xxxxxx'
TARGET_OS_ARCHITECTURE = 'x86_64'    # 或'aarch64'。可能被获取架构的方法覆盖
dataSource = 'http://prometheus-k8s.monitoring.svc.cluster.local:9090'
numa_instance_group = 'nodeinfo.volcano.sh'
numa_instance_version = 'v1alpha1'
numa_instance_plural = 'numatopologies'
numa_instance_name = HOST_NAME

test_appstore = {
    "repo": "openFuyao",
    "chart": "logging-package",
    "chartVersion": "0.0.0-latest"
}

test_repo_management = {
    "repo": "openFuyao",
    "add_repo_name": "jetstack",
    "add_repo_url": "https://charts.jetstack.io",
    "modify_repo_name": "jetstack",
    "modify_repo_url": "https://charts.jetstack.io",
    "delete_repo_name": "jetstack",
    "sync_repo_name": "openFuyao",
    "delete_chart_name": "test-chart-stress-runner-ext",
    "delete_chart_specified_version": "v2",
}

test_app_management = {
    "namespace": "default",
    "release": "test-chart-stress-runner-ext",
    # helm安装时用到的body体中的chart包数据不在此处配置。在该路径配置 data/v24.09/appManagement/POST_helm_install.yaml
    # helm升级时用到的body体中的chart包数据不在此处配置。在该路径配置 data/v24.09/appManagement/PUT_update_helm_release.yaml
    "rollback_version": "1"  # 注意此处版本本质上是个序号，不是helm应用的版本
}

test_plugin_management = {
    "enabled": True,  # 控制扩展组件的前台页面启停。也可置为False。注意此处必须为bool类型，不是str类型
    "plugin_name": "monitoring-dashboard",  # 用于扩展组件的界面启停相关。所以必须预先安装一个存在页面的扩展组件，比如logging、scheduling
    "namespace": "default",  # 测试用扩展组件的安装信息
    "repoName": "openFuyao",  # 测试用扩展组件的安装信息
    "version": "0.12.0",  # 测试用扩展组件的安装信息
    "values": "monitoring-dashboard-website:\n  enableOAuth: true\n  oauthProxy:\n    containerPort: 9093\n    image:\n      repository: \"harbor.openfuyao.com/openfuyao/oauth-proxy\"\n      pullPolicy: Always\n      tag: \"v24.12\"\n  service:\n    containerPort: 8080",
}

test_monitoring_dashboard = {
    "release": "monitoring-dashboard",
    "namespace": "default",
    "repoName": "openFuyao",  # 测试用扩展组件的安装信息
    "version": "0.12.0",  # 测试用扩展组件的安装信息
    "values": "monitoring-dashboard-website:\n  enableOAuth: true\n  oauthProxy:\n    containerPort: 9093\n    image:\n      repository: \"harbor.openfuyao.com/openfuyao/oauth-proxy\"\n      pullPolicy: Always\n      tag: \"v24.12\"\n  service:\n    containerPort: 8080",
    "dashboard_name": "test_dashboard_01",
    "dashboard_creator": "admin",
    "step": "2",  # 每2s取一个数据
    "time_resent": 10,  # 采集10min前到now的数据
    "dashboard_name_modified": "test_dashboard_01_modified",
    "data_source": "http://prometheus-k8s.monitoring.svc.cluster.local:9090",
    "widget_name": "test_widget_01",
    "widget_name_modified": "test_widget_01_modified",
    "indicator_name": "ALERTS",  # 监控指标名称
}

test_usermanagement = {
    "cluster-name": "host",
    "cluster-role": "cluster-admin"
}

test_colocation = {
    "release": "colocation-package",
    "namespace": "default",
    "repoName": "openFuyao",  # 测试用扩展组件的安装信息
    "version": "0.14.0",
    # values从文件中读取

}

test_multicluster = {
    "release": "multi-cluster-service",
    "namespace": "default",
    "repoName": "openFuyao",  # 测试用扩展组件的安装信息
    "version": "0.14.0",
    "managed_cluster_name": "test-cluster",
    # values和kubeconfig从文件中读取
}

test_logging = {
    "release": "logging-package",
    "helmnamespace": "default",
    "repoName": "openFuyao",  # 测试用扩展组件的安装信息
    "version": "0.14.0",
    # values从文件中读取
    "namespace": "monitoring",
    "pod": "alertmanager-main-0",
    "container": "alertmanager",
    "level": "error",
    "keyword": "error",
    "filename": "/var/log/pods/monitoring_prometheus-k8s-0_3415d2e9-f1a1-4ebd-bfce-da96405f8898/prometheus/1.log"
}

test_openfuyao_ray = {
    "cluster_name": "host",
    "namespace": "default",
    "raycluster_name": "raycluster-kuberay-test",
    "rayjob_name": "rayjob-kuberay-test",
    "rayservice_name": "rayservice-kuberay-test"
}

test_monitoring = {
    "namespace": "monitoring",
    "deployment": "prometheus-operator",
    "podname": "prometheus-k8s-0",
    "containername": "prometheus",
    "statefulset": "prometheus-operator",
    "daemonset": "prometheus-operator",
    "steptime": "5m",
    "etcd_instance": IP + ":2379",
    "kube_scheduler_instance": IP + ":10259",
    "kube_controller_manager_instance": IP + ":10257",
    "kubelet_instance": IP + ":10250",
    "kube_proxy_instance": HOST_NAME,
    "addon_instance": "172.17.82.194:9153",
    "expr": "up"
}

test_volcano_config_servcie = {
    "cluster_name": "host",
    "action_open": "open",
    "action_close": "close",
    "uuid": ""
}
